﻿using Microsoft.AspNetCore.Razor.TagHelpers;

namespace ReaWTM.LayuiHelper.Components.Form
{
	[HtmlTargetElement("wt:searchpanel-more", ParentTag = "wt:searchpanel", TagStructure = TagStructure.NormalOrSelfClosing)]
	public class SearchPanelMoreTagHelper : BaseTag
	{
		public override void Process(TagHelperContext context, TagHelperOutput output)
		{
			SetCascadeValue(context, this);
			UseCascadeParameter<SearchPanelTagHelper>(context, x =>
			{
				x.SetDictValue("has-more", "true");
			});
			output.TagName = "div";
			output.Attributes.Add("class", "wtm-more");
			base.Process(context, output);
		}
	}
}
